-- GENERATED SPELL FOR [Black Blood of Draenor] --


function spell0_23286(pUnit, Event) --@Black Sludge,n/a--
pUnit:FullCastSpellOnTarget(7279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23286', 33000, 1)
end

function spell1_23286(pUnit, Event) --@Toxic Slime,Self--
pUnit:FullCastSpellOnTarget(40818,pUnit)
pUnit:RegisterEvent('Sorts_23286', 11500, 1)
end

function Sorts_23286(pUnit, Event)
local choix_sorts_23286 = math.random(0, 1)
if choix_sorts_23286 == 0 then
pUnit:RegisterEvent('spell0_23286', 1, 1)
end
if choix_sorts_23286 == 1 then
pUnit:RegisterEvent('spell1_23286', 1, 1)
end
end

function mob23286_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23286', math.random(1500, 3000), 1)
end

function mob23286_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23286_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23286_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23286, 1, 'mob23286_Action')
RegisterUnitEvent(23286, 2, 'mob23286_Leave')
RegisterUnitEvent(23286, 3, 'mob23286_Kill')
RegisterUnitEvent(23286, 4, 'mob23286_Die')
